home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / dsp / 56000tar.z / 56000tar / 56000 / flts / iir1t.asm < prev    next >
Assembly Source File  |  1991-11-26  |  1KB  |  39 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAIMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; Last Update 16 Jul 87   Version 1.0
  6. ;
  7.                                                                                                                                
  8. ; IIR1 Filter Test Program
  9. ;
  10.         opt     cex,mex
  11.         page    132,66,0,10
  12.         include 'iir1'
  13.  
  14. datin   equ     $ffff           ;location in Y memory of input file
  15. datout  equ     $fffe           ;location in Y memory of output file
  16. npts    equ     20              ;number of points to process
  17.  
  18.         org     x:0
  19. states  ds      2               ;filter states
  20.  
  21.         org     y:0
  22. coef    dc      .8,-.3          ;coefficients
  23.  
  24.         org     p:$100
  25. start
  26.         move    #states,r0      ;point to filter states
  27.         move    #coef,r4        ;point to filter coefficients
  28.  
  29.         do      #npts,_endp
  30.  
  31.         movep   y:datin,a       ;get sample
  32.  
  33.         iir1                    ;do 2nd order iir
  34.  
  35.         movep   a,y:datout      ;output sample
  36. _endp
  37.         end
  38.